<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
    <script>
    window.onload = function (){
        // alert('文档加载完成!!!');
        // console.log(box + '前');
    }
    </script>
</head>
<body>
    <h1>JS 加载事件</h1>
    <hr>
    
    <div id="box">12345</div>
    <!-- <img src="http://facebook.com/pic/2.jpg"> -->

    <img src="./imgs/mm055501.jpg" onload="alert('图片加载完成!!')">
    
    <script>
        // console.log(box + '后');
    </script>
</body>
</html>